<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/14
 * Time: 10:51
 */

namespace app\common\util\weixin;


use app\common\util\CUrl;

class Auth
{
    /**
     * 获取微信服务器IP列表
     */
    public static function getWeChatIPList()
    {
        $accessToken = AccessToken::getAccessToken();
        $url = 'https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=' . $accessToken;
        return json_decode(CUrl::httpGet($url), true);
    }

    
}